{% extends "base.volt" %}


        {% block pageFooter%}

        {{ javascript_include("/libs/layer-v1.9.3/layer.js", false) }}
        {{ javascript_include("/js/area.js", false) }}
        {{ javascript_include("/assets/manage/js/beautycanon/homelist.js", false) }}
        {% endblock %}

        {% block content %}
        {{ partial("module/left_beautycanon") }}
<div class="col-xs-10">
    <ol class="breadcrumb">
        <li class="active">首页美粒儿宝典</li>
    </ol>

    <div class="panel panel-default">
        <div class="panel-body row">
            <form class="form-inline pull-right" role="form" action="" method="get" style="margin-right: 20px;">
                <div class="form-group">

                    <div class="input-group">

                        <label class="input-group-addon">城市</label>
                       <select class="form-control" name="cityid" >
                       		<option value="">全部</option>
                        	{% for oc in openCity %}
                            	<option value="{{ oc.city_id }}" {% if cityid == oc.city_id %} selected="selected" {% endif %}>{{ oc.city_name|e }}</option>
                            {% endfor %}
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-primary"><i class="fa fa-filter"></i> 查 询</button>
                </div>
            </form>
        </div>
    </div>


    <table class="table table-hover">
        <thead>
        <tr>
            <th style="width: 60px;">ID</th>
            <th style="width: 150px;">封面</th>
            <th>专题标题</th>
            <th>点赞数</th>
            <th>城市</th>
            <th>排序</th>
            <th style="width: 100px">操作</th>
        </tr>
        </thead>
		<?php foreach($list as $r){?>
        <tr>
            <td><?=$r['id']?></td>
            <td><img style="width:50px;height:50px;" src="<?=$r['img_url']?>"/></td>
            <td><?=$r['title']?></td>
            
            <?php if(empty($r['assist'])){?>
            	<td>0</td>
            <?php }else{?> 
            	<td><?=$r['assist']?></td>
            <?php } ?>
            
            <td>
           		<?=$r['city_name']['city_name']?>
            </td>
            <td><?=$r['sort']?></td>
            <td>
                <a class="cancelRecom" durl="{{url.get('beautycanon/undo')}}?id=<?=$r['id']?>" href="javascript:;">取消推荐</a>
            </td>
        </tr>
		<?php }?>
       

    </table>
{{ this.tagNav.page(
        page,
        total,
        limit,
        url.get('beautycanon/list', [
            'filterName': filterName,
            'filterProvince': filterProvince,
            'filterCity': filterCity,
            'filterDistrict': filterDistrict,
            'filterState': filterState,
            'filterSell': filterSell,
            'filterMedal': filterMedal,
            'page': '__PAGE__'
        ]
    )) }}







</div>
        {% endblock %}